import 'package:flutter/material.dart';
import 'package:test1/View/MyRowText.dart';
import 'package:test1/pages/widgets/Widget_AboutDialog_Page.dart';
import 'package:test1/pages/widgets/Widget_AlertDialog_Page.dart';
import 'package:test1/pages/widgets/Widget_Canvas_Paint_Page.dart';
import 'package:test1/pages/widgets/Widget_ClipOval_Page.dart';
import 'package:test1/pages/widgets/Widget_ClipPath_Page.dart';
import 'package:test1/pages/widgets/Widget_ClipRRect_Page.dart';
import 'package:test1/pages/widgets/Widget_ClipRect_Page.dart';
import 'package:test1/pages/widgets/Widget_ConstrainedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_CupertinoActivityIndicator_Page.dart';
import 'package:test1/pages/widgets/Widget_CupertinoAlertDialog_Page.dart';
import 'package:test1/pages/widgets/Widget_CupertinoButton_Page.dart';
import 'package:test1/pages/widgets/Widget_CupertinoPageScaffold_Page.dart';
import 'package:test1/pages/widgets/Widget_CupertinoTabScaffold_Page.dart';
import 'package:test1/pages/widgets/Widget_CustomDialog_Page.dart';
import 'package:test1/pages/widgets/Widget_Dismissible_Page.dart';
import 'package:test1/pages/widgets/Widget_Expanded_Page.dart';
import 'package:test1/pages/widgets/Widget_FittedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_Form_Page.dart';
import 'package:test1/pages/widgets/Widget_FractionallySizedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_IndexedStack_Page.dart';
import 'package:test1/pages/widgets/Widget_LimitedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_ListView_Page.dart';
import 'package:test1/pages/widgets/Widget_Align_Page.dart';
import 'package:test1/pages/widgets/Widget_AppBar_Page.dart';
import 'package:test1/pages/widgets/Widget_AspectRatio_Page.dart';
import 'package:test1/pages/widgets/Widget_BaseLine_Page.dart';
import 'package:test1/pages/widgets/Widget_BottomNavigationBar_Page.dart';
import 'package:test1/pages/widgets/Widget_RotatedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_WebView_Page.dart';
import 'package:test1/pages/widgets/Widget_WillPopScope_Page.dart';
import 'package:test1/pages/widgets/Widget_showBottomSheet_Page.dart';
import 'package:test1/pages/widgets/Widget_BoxDecoration_Page.dart';
import 'package:test1/pages/widgets/Widget_BoxShadow_Page.dart';
import 'package:test1/pages/widgets/Widget_Card_Page.dart';
import 'package:test1/pages/widgets/Widget_Center_Page.dart';
import 'package:test1/pages/widgets/Widget_Chip_Page.dart';
import 'package:test1/pages/widgets/Widget_CircleAvatar_Page.dart';
import 'package:test1/pages/widgets/Widget_CircularProgressIndicator_Page.dart';
import 'package:test1/pages/widgets/Widget_Column_Page.dart';
import 'package:test1/pages/widgets/Widget_Container_Page.dart';
import 'package:test1/pages/widgets/Widget_DecoratedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_Drawer_Page.dart';
import 'package:test1/pages/widgets/Widget_Flexible_Page.dart';
import 'package:test1/pages/widgets/Widget_FloatingActionButton_Page.dart';
import 'package:test1/pages/widgets/Widget_Flow_Page.dart';
import 'package:test1/pages/widgets/Widget_GestureDetector_Page.dart';
import 'package:test1/pages/widgets/Widget_GridView_Page.dart';
import 'package:test1/pages/widgets/Widget_Image_Page.dart';
import 'package:test1/pages/widgets/Widget_LinearProgressIndicator_Page.dart';
import 'package:test1/pages/widgets/Widget_ListTitle_Page.dart';
import 'package:test1/pages/widgets/Widget_Offstage_Page.dart';
import 'package:test1/pages/widgets/Widget_Opacity_Page.dart';
import 'package:test1/pages/widgets/Widget_Padding_Page.dart';
import 'package:test1/pages/widgets/Widget_PopupMenuButton_Page.dart';
import 'package:test1/pages/widgets/Widget_RaisedButton_Page.dart';
import 'package:test1/pages/widgets/Widget_RefreshIndicator_Page.dart';
import 'package:test1/pages/widgets/Widget_Row_Page.dart';
import 'package:test1/pages/widgets/Widget_Scaffold_Page.dart';
import 'package:test1/pages/widgets/Widget_showModalBottomSheet_Page.dart';
import 'package:test1/pages/widgets/Widget_SimpleDialog_Page.dart';
import 'package:test1/pages/widgets/Widget_SizedBox_Page.dart';
import 'package:test1/pages/widgets/Widget_SnackBar_Page.dart';
import 'package:test1/pages/widgets/Widget_Stack_Page.dart';
import 'package:test1/pages/widgets/Widget_Swiper_Page.dart';
import 'package:test1/pages/widgets/Widget_TabBar_Page.dart';
import 'package:test1/pages/widgets/Widget_Table_Page.dart';
import 'package:test1/pages/widgets/Widget_TextFiled_Page.dart';
import 'package:test1/pages/widgets/Widget_Text_Page.dart';
import 'package:test1/pages/widgets/Widget_Wrap_Page.dart';

import 'Widget_Checkbox_Page.dart';
import 'Widget_Radio_Page.dart';
import 'Widget_Switch_Page.dart';

class Flutter_Widgets_Page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("组件"),
        ),
        body: ListView(
          children: <Widget>[
            MyRowText("AboutDialog组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_AboutDialog_Page();
                }))
            ),
            MyRowText("AlertDialog组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_AlertDialog_Page();
                }))
            ),
            MyRowText("Align组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Align_Page();
                }))
            ),
            MyRowText("AppBar组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_AppBar_Page();
                }))
            ),
            MyRowText("AspectRatio组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_AspectRatio_Page();
                }))
            ),
            MyRowText("Baseline组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_BaseLine_Page();
                }))
            ),
            MyRowText("BottomNavigationBar组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_BottomNavigationBar_Page();
                }))
            ),
            MyRowText("BoxDecoration组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_BoxDecoration_Page();
                }))
            ),
            MyRowText("BoxShadow组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_BoxShadow_Page();
                }))
            ),
            MyRowText("Canvas和Paint", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Canvas_Paint_Page();
                }))
            ),
            MyRowText("Card组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Card_Page();
                }))
            ),
            MyRowText("Center组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Center_Page();
                }))
            ),
            MyRowText("Checkbox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Checkbox_Page();
                }))
            ),
            MyRowText("Chip组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Chip_Page();
                }))
            ),
            MyRowText(
                "CircleAvatar,ClipOval,BoxDecoration设置显示圆形图片，ClipRRect，BoxDecoration设置显示圆角图片", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CircleAvatar_Page();
                }))
            ),
            MyRowText("CircularProgressIndicator组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CircularProgressIndicator_Page();
                }))
            ),
            MyRowText("ClipOval组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ClipOval_Page();
                }))
            ),
            MyRowText("ClipPath组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ClipPath_Page();
                }))
            ),
            MyRowText("ClipRect组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ClipRect_Page();
                }))
            ),
            MyRowText("ClipRRect组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ClipRRect_Page();
                }))
            ),
            MyRowText("Column组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Column_Page();
                }))
            ),
            MyRowText("ConstrainedBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ConstrainedBox_Page();
                }))
            ),
            MyRowText("Container组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Container_Page();
                }))
            ),
            MyRowText("CupertinoButton组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CupertinoButton_Page();
                }))
            ),
            MyRowText("CupertinoAlertDialog组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CupertinoAlertDialog_Page();
                }))
            ),
            MyRowText("CupertinoActivityIndicator组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CupertinoActivityIndicator_Page();
                }))
            ),
            MyRowText("CupertinoPageScaffold组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CupertinoPageScaffold_Page();
                }))
            ),
            MyRowText("CupertinoTabScaffold组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CupertinoTabScaffold_Page();
                }))
            ),
            MyRowText("自定义Dialog组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_CustomDialog_Page();
                }))
            ),
            MyRowText("DecoratedBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_DecoratedBox_Page();
                }))
            ),
            MyRowText("Dismissible组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Dismissible_Page();
                }))
            ),
            MyRowText("Drawer组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Drawer_Page();
                }))
            ),

            MyRowText("Expanded组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Expanded_Page();
                }))
            ),
            MyRowText("FittedBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_FittedBox_Page();
                }))
            ),
            MyRowText("Flexible组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Flexible_Page();
                }))
            ),
            MyRowText("Flow组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Flow_Page();
                }))
            ),
            MyRowText("FloatingActionButton组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_FloatingActionButton_Page();
                }))
            ),
            MyRowText("Form组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Form_Page();
                }))
            ),
            MyRowText("FractionallySizedBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_FractionallySizedBox_Page();
                }))
            ),
            MyRowText("GestureDetector组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_GestureDetector_Page();
                }))
            ),
            MyRowText("GridView组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_GridView_Page();
                }))
            ),
            MyRowText("Image组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Image_Page();
                }))
            ),
            MyRowText("IndexedStack组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_IndexedStack_Page();
                }))
            ),
            MyRowText("LimitedBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_LimitedBox_Page();
                }))
            ),
            MyRowText("LinearProgressIndicator组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_LinearProgressIndicator_Page();
                }))
            ),
            MyRowText("ListTitle组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ListTitle_Page();
                }))
            ),
            MyRowText("ListView组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return ListViewPage();
                }))
            ),
            MyRowText("Offstage组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Offstage_Page();
                }))
            ),
            MyRowText("Opacity组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Opacity_Page();
                }))
            ),
            MyRowText("Padding组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Padding_Page();
                }))
            ),
            MyRowText("PopupMenuButton组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_PopupMenuButton_Page();
                }))
            ),
            MyRowText("Radio组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Radio_Page();
                }))
            ),
            MyRowText("RaisedButton组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_RaisedButton_Page();
                }))
            ),
            MyRowText("RefreshIndicator组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_RefreshIndicator_Page();
                }))
            ),
            MyRowText("RotatedBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_RotatedBox_Page();
                }))
            ),
            MyRowText("Row组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Row_Page();
                }))
            ),
            MyRowText("Scaffold组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Scaffold_Page();
                }))
            ),
            MyRowText("showBottomSheet函数", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_showBottomSheet_Page();
                }))
            ),
            MyRowText("showModalBottomSheet函数", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_ShowModalBottomSheet_Page();
                }))
            ),
            MyRowText("SimpleDialog组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_SimpleDialog_Page();
                }))
            ),
            MyRowText("SizeBox组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_SizedBox_Page();
                }))
            ),
            MyRowText("SnackBar组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_SnackBar_Page();
                }))
            ),
            MyRowText("Stack组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Stack_Page();
                }))
            ),
            MyRowText("Swiper组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Swiper_Page();
                }))
            ),
            MyRowText("Switch组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Switch_Page();
                }))
            ),
            MyRowText("TabBar组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_TabBar_Page();
                }))
            ),
            MyRowText("Table组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Table_Page();
                }))
            ),
            MyRowText("Text组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Text_Page();
                }))
            ),
            MyRowText("TextFiled组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_TextFiled_Page();
                }))
            ),
            MyRowText("Widget_WebView_Page组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_WebView_Page();
                }))
            ),
            MyRowText("Widget_WillPopScope_Page组件 实现双击退出", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_WillPopScope_Page();
                }))
            ),
            MyRowText("Wrap组件", () =>
                Navigator.push(
                    context, MaterialPageRoute(builder: (BuildContext context) {
                  return Widget_Wrap_Page();
                }))
            ),

          ],
        ),
      ),
    );
  }
}